package ThreadDemo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2025-03-27
 * Time: 09:17
 */
public class ThreadDemo6 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();

        synchronized (object){
            System.out.println("wait 之前");
            object.wait();
            System.out.println("wait 之后");
        }

    }
}
